import { Injectable } from '@nestjs/common';
import { TypeOrmCrudService } from '@nestjsx/crud-typeorm';
import { Topic } from '../../entities/topic.entity';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';

@Injectable()
export class TopicService extends TypeOrmCrudService<Topic>{
  constructor(
    @InjectRepository(Topic)
    private readonly repository:Repository<Topic>
  ){
    super(repository);
  }
}
